home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 10
/
FM Towns Free Software Collection 10.iso
/
ms_dos
/
tool
/
et
/
et.bat
next >
Wrap
DOS Batch File
|
1995-02-20
|
811b
|
44 lines
: et.bat type2 sample by TEMITORAVIOS 95/02/09
echo off
if /%1/ == // goto _help
if /%1/ == /?/ goto _help2
shift
goto %0
:_help
echo Usage: et cmd
sed -n -e "s/^:\(.*\):$/ \1/p" et.bat
goto _end
:_help2
if /%2/ == // goto _help
sed -n -e "/^:%2[ \t].*:$/{;s/^:\(.*\):$/ \1 /;:L;H;n;s/^:/ /;t L;x;p;q;}" et.bat
goto _end
:doc 説明ファイル表示:
:
: et.doc を表示します.
type et.doc
goto _end
:type file [/p] テキストを表示します。:
:
: /p .. moreコマンドを利用し一画面ごとにポーズをかけます
:
: 役にたたない内容(^^;) あくまでサンプルですから.
if /%1/ == // goto type_er
if /%2/ == //p/ goto type_more
type %1
goto _end
:type_more
more < %1
goto _end
:type_er
echo.ファイル名を指定してください.
goto _end
:_end